package com.itheima.mapper;

import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MemberMapper {

    /**
     * 根据电话查询会员
     * @param telephone
     * @return
     */
    @Select("select * from t_member where phoneNumber = #{phoneNumber}")
    Member findByTelephone(String telephone);

    /**
     * 新增会员
     * @param member
     */

    void add(Member member);
}
